<template>
    <a-card :bordered="false">
        <a-table bordered :columns="columns" :data-source="data">
        </a-table>
    </a-card>
</template>

<script>
    const columns = [
        {key:"date", dataIndex:"date", title:"日期", width: "20%", },
        {key:"userName", dataIndex:"userName", title:"操作人", width: "10%" },
        {key:"content", dataIndex: "content",  title:"日志内容", width: "50%", scopedSlots:{customRender:"action"} },
    ];
    const data = [
        {date: "2020-08-15 10:30:50", userName: "王帅", content: "更改系统设置"} ,
        {date: "2020-08-15 09:30:44", userName: "王帅", content: "光盘刻录"} ,
        {date: "2020-08-15 09:12:50", userName: "王帅", content: "更改归档设置"} ,
        {date: "2020-08-15 08:23:05", userName: "王帅", content: "登录"} ,
    ]


    export default {
        name: "system_log",
        data(){
            return{
                columns,
                data
            }
        }
    }
</script>

<style scoped>

</style>